package com.seabook.store.purchase.dao;

import java.util.List;

import junit.framework.TestCase;

import com.seabook.store.purchase.domain.Order;
import com.seabook.store.util.ServiceLocator;

public class OrderDaoTestCase extends TestCase{
    OrderDao dao;
    public OrderDaoTestCase(){
        dao = (OrderDao) ServiceLocator.getBean("orderDao");     
    }
    
//    public void testInsert(){
//        Order order =  dao.insertOrder(new Order());
//        System.out.println(order.getOrderId());
//        
//        
//    }
    public void testQuery(){
        List<Order> order =  dao.getOrderByUserId(1);
        System.out.println(order.size());
        
        
    }
}
